<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: header/UtilFunctions.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_util_functions_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">UtilFunctions.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;osg/Camera&gt;</code><br />
<code>#include &lt;osg/Geometry&gt;</code><br />
<code>#include &lt;osg/MatrixTransform&gt;</code><br />
<code>#include &lt;osg/Texture2D&gt;</code><br />
<code>#include &lt;osgViewer/Viewer&gt;</code><br />
<code>#include &lt;osg/PositionAttitudeTransform&gt;</code><br />
<code>#include &lt;osgText/Text&gt;</code><br />
<code>#include &lt;osgDB/ReadFile&gt;</code><br />
<code>#include &lt;osg/Shader&gt;</code><br />
<code>#include &lt;osg/Material&gt;</code><br />
<code>#include &lt;osgParticle/ParticleSystem&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;functional&gt;</code><br />
</div>
<p><a href="_util_functions_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbrtr_1_1_body_of_rotation_function.html">brtr::BodyOfRotationFunction</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">struct holding the function, which calculates the radius in dependece of the height. lambda (double)-&gt;double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function  <a href="structbrtr_1_1_body_of_rotation_function.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbrtr_1_1_rendering_pipeline.html">brtr::RenderingPipeline</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">struct holding the camera for the multi-rendering passes. Also holds the program vector for the post process pass. pass0Color, pass0depth, passPostProcess, program array, count programArray The program vector is used by the <a class="el" href="classbrtr_1_1_key_handler.html" title="Key Handler Class, handles all of our KeyFunctions, which do not belong to camera control (this are h...">KeyHandler</a> and the InteractionItems for changing the postprocess programs  <a href="structbrtr_1_1_rendering_pipeline.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacebrtr"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html">brtr</a></td></tr>
<tr class="memdesc:namespacebrtr"><td class="mdescLeft">&#160;</td><td class="mdescRight">Namespace for the whole BrainTrain Project. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a525335710b53cb064ca56b936120431e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_util_functions_8h.html#a525335710b53cb064ca56b936120431e">_USE_MATH_DEFINES</a></td></tr>
<tr class="separator:a525335710b53cb064ca56b936120431e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:adcf0546a392221be3958ec96f99887f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#adcf0546a392221be3958ec96f99887f0">brtr::createRenderingPipeline</a> (unsigned int width, unsigned int height, osg::Node &amp;rootForToon, osgViewer::Viewer &amp;viewer, RenderingPipeline &amp;pipe, osg::Vec3f &amp;fogColor)</td></tr>
<tr class="memdesc:adcf0546a392221be3958ec96f99887f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates the rendering pipeline  <a href="#adcf0546a392221be3958ec96f99887f0">More...</a><br /></td></tr>
<tr class="separator:adcf0546a392221be3958ec96f99887f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad772c6dbc0a2cabd40a284676c124a97"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::LightSource &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a> (const osg::Vec3 &amp;pos, int lightNum, int point=1, double spotCutoff=180, double spotExponent=0)</td></tr>
<tr class="memdesc:ad772c6dbc0a2cabd40a284676c124a97"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a Light with a lightsource  <a href="#ad772c6dbc0a2cabd40a284676c124a97">More...</a><br /></td></tr>
<tr class="separator:ad772c6dbc0a2cabd40a284676c124a97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7a89c381be095a7eb1e248d2e6c0e23"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Camera &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#aa7a89c381be095a7eb1e248d2e6c0e23">brtr::createRTTCamera</a> (osg::Camera::BufferComponent buffer, osg::Texture *tex, bool isAbsolute=false)</td></tr>
<tr class="memdesc:aa7a89c381be095a7eb1e248d2e6c0e23"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a RTTCam  <a href="#aa7a89c381be095a7eb1e248d2e6c0e23">More...</a><br /></td></tr>
<tr class="separator:aa7a89c381be095a7eb1e248d2e6c0e23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32cfc96621681baabc76c52af5d6a347"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geode &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a32cfc96621681baabc76c52af5d6a347">brtr::createScreenQuad</a> (float width, float height, float scale=1.0f)</td></tr>
<tr class="memdesc:a32cfc96621681baabc76c52af5d6a347"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a texture-ready screen quad for postprocessing  <a href="#a32cfc96621681baabc76c52af5d6a347">More...</a><br /></td></tr>
<tr class="separator:a32cfc96621681baabc76c52af5d6a347"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62da4f109238c45882dd64d7a7e97a1d"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Camera &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a62da4f109238c45882dd64d7a7e97a1d">brtr::createHUDCamera</a> (double left, double right, double bottom, double top)</td></tr>
<tr class="memdesc:a62da4f109238c45882dd64d7a7e97a1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a HUD-Cam with a 2D-orthogonal projection matrix  <a href="#a62da4f109238c45882dd64d7a7e97a1d">More...</a><br /></td></tr>
<tr class="separator:a62da4f109238c45882dd64d7a7e97a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4431de1c1fa2c1d42c4fb57c38aaa3ce"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osgText::Text &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a4431de1c1fa2c1d42c4fb57c38aaa3ce">brtr::createText</a> (const osg::Vec3 &amp;pos, const std::string &amp;content, float size)</td></tr>
<tr class="memdesc:a4431de1c1fa2c1d42c4fb57c38aaa3ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a (arial) text object for use with a hud camera  <a href="#a4431de1c1fa2c1d42c4fb57c38aaa3ce">More...</a><br /></td></tr>
<tr class="separator:a4431de1c1fa2c1d42c4fb57c38aaa3ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83d3e627c9dc247459610aa9fec23d7b"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a83d3e627c9dc247459610aa9fec23d7b">brtr::createBodyOfRotation</a> (double height, int hsteps, int rsteps, const BodyOfRotationFunction &amp;function)</td></tr>
<tr class="memdesc:a83d3e627c9dc247459610aa9fec23d7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a body of rotation.  <a href="#a83d3e627c9dc247459610aa9fec23d7b">More...</a><br /></td></tr>
<tr class="separator:a83d3e627c9dc247459610aa9fec23d7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793c6ef7f57632fc5ac280b94f60dd65"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a793c6ef7f57632fc5ac280b94f60dd65">brtr::createRectangle</a> (double length, double width, int lsteps, int wsteps)</td></tr>
<tr class="memdesc:a793c6ef7f57632fc5ac280b94f60dd65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Rectangle with TRIANGLE_STRIPS.  <a href="#a793c6ef7f57632fc5ac280b94f60dd65">More...</a><br /></td></tr>
<tr class="separator:a793c6ef7f57632fc5ac280b94f60dd65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e91424e74398a612c38a920df0577ef"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a4e91424e74398a612c38a920df0577ef">brtr::createRectangleWithTexcoords</a> (double length, double width, int lsteps, int wsteps)</td></tr>
<tr class="memdesc:a4e91424e74398a612c38a920df0577ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Rectangle with TRIANGLE_STRIPS.  <a href="#a4e91424e74398a612c38a920df0577ef">More...</a><br /></td></tr>
<tr class="separator:a4e91424e74398a612c38a920df0577ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7f155c263aec9663a02763ed0bb882b"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Group &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#ae7f155c263aec9663a02763ed0bb882b">brtr::createCuboid</a> (const double length, const double width, const double height, const double factor=6)</td></tr>
<tr class="memdesc:ae7f155c263aec9663a02763ed0bb882b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Cubiod with TRIANGLE_STRIPS using the createRectangle function.  <a href="#ae7f155c263aec9663a02763ed0bb882b">More...</a><br /></td></tr>
<tr class="separator:ae7f155c263aec9663a02763ed0bb882b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a887d7975f37c4334b70e2196735b6678"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr<br class="typebreak" />
&lt; osg::PositionAttitudeTransform &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a887d7975f37c4334b70e2196735b6678">brtr::wrapInPositionAttitudeTransform</a> (osg::Node *srcNode, const osg::Vec3d &amp;pos)</td></tr>
<tr class="memdesc:a887d7975f37c4334b70e2196735b6678"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the given Node in a PositionAttitudeTransform with a given position.  <a href="#a887d7975f37c4334b70e2196735b6678">More...</a><br /></td></tr>
<tr class="separator:a887d7975f37c4334b70e2196735b6678"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16fa8982307a039c08ab56912bab94b9"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a16fa8982307a039c08ab56912bab94b9">brtr::createBeerBottle</a> ()</td></tr>
<tr class="memdesc:a16fa8982307a039c08ab56912bab94b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a BeerBottle with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#a16fa8982307a039c08ab56912bab94b9">More...</a><br /></td></tr>
<tr class="separator:a16fa8982307a039c08ab56912bab94b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a614d8d6b8bcc6c4e7f7ffb24ca48eb4c"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a614d8d6b8bcc6c4e7f7ffb24ca48eb4c">brtr::createRealBottle</a> ()</td></tr>
<tr class="memdesc:a614d8d6b8bcc6c4e7f7ffb24ca48eb4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Bottle with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#a614d8d6b8bcc6c4e7f7ffb24ca48eb4c">More...</a><br /></td></tr>
<tr class="separator:a614d8d6b8bcc6c4e7f7ffb24ca48eb4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f3c063f7a8fa6cc33a8cb52b036d27"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#ab4f3c063f7a8fa6cc33a8cb52b036d27">brtr::createVase</a> ()</td></tr>
<tr class="memdesc:ab4f3c063f7a8fa6cc33a8cb52b036d27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a vase with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#ab4f3c063f7a8fa6cc33a8cb52b036d27">More...</a><br /></td></tr>
<tr class="separator:ab4f3c063f7a8fa6cc33a8cb52b036d27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ccd9746e37278e47832da270dc00fb3"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a4ccd9746e37278e47832da270dc00fb3">brtr::createStalk</a> ()</td></tr>
<tr class="memdesc:a4ccd9746e37278e47832da270dc00fb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a stalk with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#a4ccd9746e37278e47832da270dc00fb3">More...</a><br /></td></tr>
<tr class="separator:a4ccd9746e37278e47832da270dc00fb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b3741c30ca1b6282b9693055ddc060"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a51b3741c30ca1b6282b9693055ddc060">brtr::createBud</a> ()</td></tr>
<tr class="memdesc:a51b3741c30ca1b6282b9693055ddc060"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a bud with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#a51b3741c30ca1b6282b9693055ddc060">More...</a><br /></td></tr>
<tr class="separator:a51b3741c30ca1b6282b9693055ddc060"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a118d4013732dea1a161b6d225df6dc2e"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geometry &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a118d4013732dea1a161b6d225df6dc2e">brtr::createChessFigure</a> ()</td></tr>
<tr class="memdesc:a118d4013732dea1a161b6d225df6dc2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a "ChessFigure" with Material with the help of the <a class="el" href="structbrtr_1_1_body_of_rotation_function.html" title="struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function ">BodyOfRotationFunction</a>.  <a href="#a118d4013732dea1a161b6d225df6dc2e">More...</a><br /></td></tr>
<tr class="separator:a118d4013732dea1a161b6d225df6dc2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05625aff9337331ae351d283f79f0f1e"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr<br class="typebreak" />
&lt; osg::PositionAttitudeTransform &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a05625aff9337331ae351d283f79f0f1e">brtr::createVaseWithFlower</a> ()</td></tr>
<tr class="memdesc:a05625aff9337331ae351d283f79f0f1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">combines the stalk, bud and vase in a postitionAttitudetransform  <a href="#a05625aff9337331ae351d283f79f0f1e">More...</a><br /></td></tr>
<tr class="separator:a05625aff9337331ae351d283f79f0f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c533ae635c528c761cc83e34e91b2f"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Geode &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a31c533ae635c528c761cc83e34e91b2f">brtr::createCrosshair</a> (unsigned int width, unsigned int height)</td></tr>
<tr class="memdesc:a31c533ae635c528c761cc83e34e91b2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a crosshair in the middle of the screen  <a href="#a31c533ae635c528c761cc83e34e91b2f">More...</a><br /></td></tr>
<tr class="separator:a31c533ae635c528c761cc83e34e91b2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea7b3b188858f0bce09f2450a749f497"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Texture2D &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a> (std::string toonTex)</td></tr>
<tr class="memdesc:aea7b3b188858f0bce09f2450a749f497"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a Texture2D object with the given toonTex  <a href="#aea7b3b188858f0bce09f2450a749f497">More...</a><br /></td></tr>
<tr class="separator:aea7b3b188858f0bce09f2450a749f497"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b54dcabf5846ea963221e59b38b0a79"><td class="memItemLeft" align="right" valign="top">osg::ref_ptr&lt; osg::Material &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a7b54dcabf5846ea963221e59b38b0a79">brtr::createSimpleMaterial</a> (osg::Material::Face face, const osg::Vec4 &amp;diffuse, const osg::Vec4 &amp;ambient, const osg::Vec4 &amp;specular, const double shininess)</td></tr>
<tr class="memdesc:a7b54dcabf5846ea963221e59b38b0a79"><td class="mdescLeft">&#160;</td><td class="mdescRight">creates a simple material  <a href="#a7b54dcabf5846ea963221e59b38b0a79">More...</a><br /></td></tr>
<tr class="separator:a7b54dcabf5846ea963221e59b38b0a79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24ba7c5d07ad50afb09990116dd3556d"><td class="memItemLeft" align="right" valign="top">osg::Vec3&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a24ba7c5d07ad50afb09990116dd3556d">brtr::getDimensionOfNode</a> (osg::Node *source)</td></tr>
<tr class="memdesc:a24ba7c5d07ad50afb09990116dd3556d"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the dimension of a node (width, height, length)  <a href="#a24ba7c5d07ad50afb09990116dd3556d">More...</a><br /></td></tr>
<tr class="separator:a24ba7c5d07ad50afb09990116dd3556d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:af79a815819e2ef65ea9cd43dc9d43679"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a> = 0x1</td></tr>
<tr class="separator:af79a815819e2ef65ea9cd43dc9d43679"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2060f4d70c0e3bc7e2e35f82e279a40d"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a2060f4d70c0e3bc7e2e35f82e279a40d">brtr::interactionMask</a> = 0x2</td></tr>
<tr class="separator:a2060f4d70c0e3bc7e2e35f82e279a40d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21ab851f18c0c85fa006766034833a4f"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a21ab851f18c0c85fa006766034833a4f">brtr::interactionAndCollisionMask</a> = collisionMask | interactionMask</td></tr>
<tr class="separator:a21ab851f18c0c85fa006766034833a4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a7668dd62a6cbf00234c926a109fbef"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacebrtr.html#a5a7668dd62a6cbf00234c926a109fbef">brtr::fakeWallMask</a> = 0x4</td></tr>
<tr class="separator:a5a7668dd62a6cbf00234c926a109fbef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Gleb Ostrowski &amp; Marcel Felix </dd></dl>

<p>Definition in file <a class="el" href="_util_functions_8h_source.html">UtilFunctions.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a525335710b53cb064ca56b936120431e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _USE_MATH_DEFINES</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_util_functions_8h_source.html#l00014">14</a> of file <a class="el" href="_util_functions_8h_source.html">UtilFunctions.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_1ec98ce50fa6ec55b40b8ffb1df38c3c.html">header</a></li><li class="navelem"><a class="el" href="_util_functions_8h.html">UtilFunctions.h</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
